Skip to content

More explicit class method for ref doc#10228

Merged
sophiebits merged 1 commit intofacebook:masterfrom
hartzis:patch-1
Sep 10, 2017
Merged

More explicit class method for ref doc#10228
sophiebits merged 1 commit intofacebook:masterfrom
hartzis:patch-1

Conversation

@hartzis
Copy link
Contributor

@hartzis hartzis commented Jul 20, 2017

After realizing this was the second time I've visited this exact page within a year and second guessing myself that the textInput ref isn't actually the <input /> element; I'd like to submit this PR to attempt to make this more explicit.

You are actually accessing the method on the child class and not the focus method on the dom input element.

Having the methods named the same, focus, caused some confusion.

After realizing this was the second time I've visited this exact page within a year and second guessing myself that the `textInput` ref isn't actually the `<input />` element. I decided to attempt to make this a little more explicit; you are actually accessing the method on the child class and not the `focus` method on the dom input element. Having them named the same caused some confusion.
Copy link
Collaborator

@sophiebits sophiebits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sophiebits sophiebits merged commit 6d37c05 into facebook:master Sep 10, 2017
sophiebits pushed a commit that referenced this pull request Sep 10, 2017
After realizing this was the second time I've visited this exact page within a year and second guessing myself that the `textInput` ref isn't actually the `<input />` element. I decided to attempt to make this a little more explicit; you are actually accessing the method on the child class and not the `focus` method on the dom input element. Having them named the same caused some confusion.

(cherry picked from commit 6d37c05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants